package top.kaoshanji.p2ch22a;

import java.util.Date;

/**
 * author kaoshanji
 * ^_^
 * create time 2025/3/1 17:02
 */
public class Student {

    @Label("姓名")
    String name;

    @Label("出生日期")
    @Format(pattern="yyyy/MM/dd")
    Date born;

    @Label("分数")
    double score;

    public Student() {}

    public Student(String name, Date born, double score) {
        super();
        this.name = name;
        this.born = born;
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" + "name='" + name + '\'' + ", born=" + born + ", score=" + score + '}';
    }
}
